package com.car.service.blackphone.impl;

import java.util.List;

import javax.annotation.Resource;

import com.car.dal.dao.blackphone.BlackphoneDao;
import com.car.dal.object.Blkphone;
import com.car.service.blackphone.Blackphoneservice;
import com.car.util.Page;

public class Blackphoneserviceimpl implements Blackphoneservice {

	@Resource
	private BlackphoneDao blackphoneDao;

	@Override
	public List<Blkphone> findByphone(Blkphone blkphone) {
		List<Blkphone> list = blackphoneDao.findByphone(blkphone);
		return list;
	}

	@Override
	public void uupdate(Blkphone blkphone) {
		blackphoneDao.uupdate(blkphone);
		
	}

	@Override
	public void iinsert(Blkphone blkphone) {
		blackphoneDao.iinsert(blkphone);
		
	}

	@Override
	public Integer getblackphoneCount(Blkphone blkphone) {
		return blackphoneDao.getblackphoneCount(blkphone);
		
	}

	@Override
	public List<Blkphone> getblackphone(Blkphone blkphone, Page page) {
		blkphone.setFirstrownum(page.getFirstrownum());
		blkphone.setPagesize(page.getPagesize());
		return blackphoneDao.getblackphone(blkphone);
	}

	
}
